var lineDom = document.getElementById('lineChart');
var lineChart = echarts.init(lineDom);
var lineData = {
    legend: ['放款额度'],
    xAxis: ['五月', '六月', '七月', '八月', '九月'],
    actualData: [120, 82, 91, 154, 162, 140, 145]
}
var lineOption = {
        xAxis: {
          data: lineData.xAxis,
          boundaryGap: false,
          axisTick: {
            show: false
          }
        },
        grid: {
          left: 10,
          right: 30,
          bottom: 20,
          top: 30,
          containLabel: true
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            type: 'cross'
          },
          padding: [5, 10]
        },
        yAxis: {
          axisTick: {
            show: false
          }
        },
        legend: {
          left: 'center',
          data: lineData.legend
        },
        series: [
        {
          name: lineData.legend[0],
          smooth: true,
          type: 'line',
          itemStyle: {
            normal: {
              color: '#3888fa',
              lineStyle: {
                color: '#3888fa',
                width: 2
              },
              areaStyle: {
                color: '#d1f8ff'
              }
            }
          },
          data: lineData.actualData,
          animationDuration: 2800,
          animationEasing: 'quadraticOut'
        }]
  }

  lineChart.setOption(lineOption)